import { ToastAndroid } from 'react-native'

const useCatch = ({ navigation }) => {
  ToastAndroid.show(err.data.message, ToastAndroid.SHORT)
  console.log('------------------------')
  console.log(err.status)
  console.log(err.data.message)
}

export default useCatch